GtkIconTheme: Improve an error message
authorMatthias Clasen <mclasen@redhat.com>
Mon, 3 Nov 2014 05:25:14 +0000 (00:25 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 3 Nov 2014 05:25:14 +0000 (00:25 -0500)
Mention the name of the theme when an icon lookup fails.
https://bugzilla.gnome.org/show_bug.cgi?id=687963

gtk/gtkicontheme.c

index ea44a81d63e661bfac9b6e45e2025eec6a680fbe..2591086967555f12e782e0fad82917ab1b2440f4 100644 (file)
@@ -2305,7 +2305,7 @@ gtk_icon_theme_load_icon_for_scale (GtkIconTheme        *icon_theme,
   if (!icon_info)
     {
       g_set_error (error, GTK_ICON_THEME_ERROR,  GTK_ICON_THEME_NOT_FOUND,
-                   _("Icon '%s' not present in theme"), icon_name);
+                   _("Icon '%s' not present in theme %s"), icon_name, icon_theme->priv->current_theme);
       return NULL;
     }
 
@@ -2369,7 +2369,7 @@ gtk_icon_theme_load_surface (GtkIconTheme        *icon_theme,
   if (!icon_info)
     {
       g_set_error (error, GTK_ICON_THEME_ERROR,  GTK_ICON_THEME_NOT_FOUND,
-                   _("Icon '%s' not present in theme"), icon_name);
+                   _("Icon '%s' not present in theme %s"), icon_name, icon_theme->priv->current_theme);
       return NULL;
     }